import React from "react";
import qs from "qs";
function Infos(props) {
  let val = props.location.search
    ? qs.parse(props.location.search.substr(1))
    : {};

  React.useEffect(() => {}, []);

  console.log(val);
  return (
    <div>
      <p>name:{val.name}</p>
      <p>age:{val.age}</p>
      <p>address:{val.address}</p>
      <p>date:{val.date}</p>
      <p>hobby:{val.hobby}</p>
    </div>
  );
}

export default Infos;
